/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package scraper.dao;

/**
 *
 * @author thedaego
 */
public class WoWPriceData extends Data
{

    private int gold;
    private int silver;
    private String price;
    
    public WoWPriceData(String name, String source) {
        super(name, "int", source);
    }

    public int getGold() {
        return gold;
    }

    public void setGold(int gold) {
        this.gold = gold;
    }

    public int getSilver() {
        return silver;
    }

    public void setSilver(int silver) {
        this.silver = silver;
    }

    public String getPrice() {
        return this.price;
    }

    public void setPrice(int gold, int silver){
        StringBuilder priceBuilder = new StringBuilder();
        priceBuilder.append(this.getGold());
        priceBuilder.append("g");
        priceBuilder.append(" ");
        priceBuilder.append(this.getSilver());
        priceBuilder.append("s");
        priceBuilder.append(" ");
        
        this.price = priceBuilder.toString();
    }
    

    
    
}
